
import axios from '@/services/api'


export function getResourcesList(params) {
  return axios.post('/system/resources/list', params)
}

export function addResources(data) {
  return axios.post('/system/resources/add', data)
}

export function updateResources(data) {
  return axios.post('/system/resources/update', data)
}

export function deleteResources(ids) {
  return axios.post('/system/resources/delete', 'id='+ids )
}

export function getResourcesById(id) {
  return axios.post('/system/resources/selectByPrimaryKey',  'id='+id )
}